/* 整体容器样式 */
.create-material-container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 标题样式 */
.create-material-container h1 {
  text-align: center;
  color: #2c3e50;
  margin-bottom: 2rem;
}

/* 表单样式 */
.create-material-form {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

.create-material-form label {
  display: flex;
  flex-direction: column;
  font-weight: 500;
  color: #34495e;
}

.create-material-form input {
  padding: 0.8rem;
  border: 1px solid #bdc3c7;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.create-material-form input:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.create-material-form button {
  padding: 0.8rem 1.5rem;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.create-material-form button:hover {
  background-color: #2980b9;
}

/* 表格样式 */
.create-material-table {
  width: 100%;
  border-collapse: collapse;
}

.create-material-table th,
.create-material-table td {
  padding: 1rem;
  text-align: center;
  border-bottom: 1px solid #ecf0f1;
}

.create-material-table th {
  background-color: #f8f9fa;
  color: #2c3e50;
  font-weight: 600;
}

.create-material-table td a,
.create-material-table td button {
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9rem;
  cursor: pointer;
}

.create-material-table td a {
  background-color: #2ecc71;
  color: white;
  margin-right: 0.5rem;
}

.create-material-table td a:hover {
  background-color: #27ae60;
}

.create-material-table td button {
  background-color: #e74c3c;
  color: white;
  border: none;
}

.create-material-table td button:hover {
  background-color: #c0392b;
}
